%function test_example_DBN

addpath(genpath(pwd))

init;

temp = dlmread('bagging_config.txt');

max_package_id = temp(1);

for i = 1:100    
    for bin_package_id = 0:max_package_id
        load_data_from_bin;
        greek_encode;
        dbn = dbntrain(dbn, feature, opts);
        save(dbn_name,'dbn');        
    end
    
    save(['final_' dbn_name],'dbn');
    
    %runing feautre
    system( running_string );
end